package com.it.learn.controller;

import com.it.learn.feign.FeignBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xyx
 * @date 2018-10-16 20:49
 */
@RestController
@RequestMapping("/feign")
public class FeignController {

	@Autowired
	private FeignBaseService feignBaseService;

	@GetMapping("/add/{a}/{b}")
	public String add(@PathVariable int a,@PathVariable int b){
		return feignBaseService.addNum(a,b);
	}

}
